package com.onstar.cn.vehicle.result;

import java.io.Serializable;

import com.onstar.cn.common.exception.HttpException;
import com.onstar.cn.vehicle.entity.ErrorInfo;

public class PollingResult implements Serializable {

	/** 
	* @Fields serialVersionUID : TODO
	*/ 
	private static final long serialVersionUID = 552982214307054182L;
	/*
	 * 备用
	 */
	private String targetActivity;
	
	private String requestId;
	
	private String requestType;
	
	private String requestStatus;
	
//	private String resMsg;
	/*
	 * set the flag that describe in the target activity where to handle the result
	 * success or failure such case.
	 */
	private int msgTarget;
	
	private String make;
	
	private String model;
	/**
	 * 用于车辆位置的返回
	 */
	private String lat;
	
	private String lon;
	
	/**
	 * 轮训JSON返回时间
	 */
	private String completeTime;
	
	/**
	 * 用于返回polling result的json body，如车况，车辆位置
	 */
	private String json;
	
	/**
	 * 用于网络请求错误返回
	 */
	private HttpException httpException;
	
	public HttpException getHttpException() {
		return httpException;
	}

	public void setHttpException(HttpException httpException) {
		this.httpException = httpException;
	}

	public String getJson() {
		return json;
	}

	public void setJson(String json) {
		this.json = json;
	}

	public String getLat() {
		return lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}

	public String getLon() {
		return lon;
	}

	public void setLon(String lon) {
		this.lon = lon;
	}

	public String getMake() {
		return make;
	}

	public void setMake(String make) {
		this.make = make;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	private ErrorInfo errorInfo;
	
	public String getTargetActivity() {
		return targetActivity;
	}

	public void setTargetActivity(String targetActivity) {
		this.targetActivity = targetActivity;
	}

	public ErrorInfo getErrorInfo() {
		return errorInfo;
	}

	public void setErrorInfo(ErrorInfo errorInfo) {
		this.errorInfo = errorInfo;
	}

	public int getMsgTarget() {
		return msgTarget;
	}

	public void setMsgTarget(int msgTarget) {
		this.msgTarget = msgTarget;
	}

	public String getRequestId() {
		return requestId;
	}

	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}

	public String getRequestType() {
		return requestType;
	}

	public void setRequestType(String requestType) {
		this.requestType = requestType;
	}

	public String getRequestStatus() {
		return requestStatus;
	}

	public void setRequestStatus(String requestStatus) {
		this.requestStatus = requestStatus;
	}

	public String getCompleteTime() {
		return completeTime;
	}

	public void setCompleteTime(String completeTime) {
		this.completeTime = completeTime;
	}

//	public String getResMsg() {
//		return resMsg;
//	}
//
//	public void setResMsg(String resMsg) {
//		this.resMsg = resMsg;
//	}
	
}
